package com.sgj.dao;

import com.sgj.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 沈国纪
 * @date 2021/3/30 10:40
 */
public interface UserRepository extends JpaRepository<User, Long> {

	/**
	 * 根据用户名和密码查询用户
	 * @param username
	 * @param password
	 * @return
	 */
	User findByUserNameAndPassword(String username, String password);
}
